import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import {resolve} from "path"

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
	alias: {
		"vue": "vue/dist/vue.esm-bundler.js"
	},
	build: {
		rollupOptions: {
			input: {
				main: resolve(__dirname, "index.html")
			}
		}
	},
	server: {
		proxy: {
			"/api" :{
				target: "http://192.168.137.1:8848/",
				changeOrigin: true
			}
		}
	}
})
